/**
 * Created by jiangtao on 2017/5/26.
 */

import React , { Component } from 'react';
import { render } from 'react-dom';

import { Provider } from 'react-redux';

import {
    Router
} from 'react-router-dom';


import store , { history } from './../../redux/store';

import CustomRouter from '../../components/CustomRouter';

import routers from './../../routers/mobile';

import Plus from '../../components/Plus';

import './../../common/common.scss';

class App extends Component {

    constructor(props){
        super(props);
    }

    render () {
        return(
            <Provider store={ store }>
                <Router history={history}>
                    <Plus>
                        <CustomRouter routers={routers}/>
                    </Plus>
                </Router>
            </Provider>
        )
    }
};


render( <App />,document.getElementById("app"));


